﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.Contracts;
namespace WpfApplication
{
    class Load
    {
        private double resistance;
        private const double resMin = 1;

        public double Resistance {
            get { return this.resistance; }
            set {
                Contract.Requires<ArgumentOutOfRangeException>(value > 0);
                this.resistance = value; }
        }
        //public double Resistance { get; set; }

        public double ResMin
        {
            get { return resMin; }
        }

    }
}
